Skip to content

SBCOSS-467: Sunbird Groups service - add the GitHub actions to run test cases and code quality checks when a PR raised#196

Merged
pallakartheekreddy merged 2 commits intorelease-8.0.0from
git-actions
Jun 4, 2025
Merged

SBCOSS-467: Sunbird Groups service - add the GitHub actions to run test cases and code quality checks when a PR raised#196
pallakartheekreddy merged 2 commits intorelease-8.0.0from
git-actions

Conversation

@chethann007
Copy link
Copy Markdown
Contributor

@chethann007 chethann007 commented Jun 4, 2025

This PR adds a GitHub Actions workflow for PR code coverage and quality checks to the groups-service repository.

PR Code Coverage

  • Triggers: When a pull request is created against any branch.
  • Functionality:
    • Builds the project
    • Runs unit tests
    • Generates a coverage report using JaCoCo
    • Generates a test summary using Surefire reports
    • Performs static code analysis with SonarQube

This workflow ensures that every proposed change is validated for code quality and coverage before merging.

Description by Korbit AI

What change is being made?

Add GitHub Actions workflows to run test cases and perform code quality checks, including SonarQube analysis, automatically on PRs for the Sunbird Groups service.

Why are these changes being made?

The changes are introduced to ensure continuous integration practices for better code quality and coverage. Automation of testing and code analysis on every pull request helps in early detection of issues, maintaining code quality, and facilitating improved software health and reliability.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link
Copy Markdown

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've completed my review and didn't find any issues... but I did find this frog.

           .--._.--.
          ( O     O )
          /   . .   \
         .`._______.'.
        /(           )\
      _/  \  \   /  /  \_
   .~   `  \  \ /  /  '   ~.
  {    -.   \  V  /   .-    }
_ _`.    \  |  |  |  /    .'_ _
>_       _} |  |  | {_       _<
 /. - ~ ,_-'  .^.  `-_, ~ - .\
         '-'|/   \|`-`

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jun 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
13.8% Coverage on New Code (required ≥ 80%)
3.7% Duplication on New Code (required ≤ 3%)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@pallakartheekreddy pallakartheekreddy merged commit 4357ee8 into release-8.0.0 Jun 4, 2025
2 of 4 checks passed
@pallakartheekreddy pallakartheekreddy deleted the git-actions branch June 4, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants